﻿<?

$connect = mysql_connect('localhost', 'tass', '114'); // DB 연결
if ($connect) {
    echo "접속성공<br/>";
}else {
    echo "접속실패<br/>";
}

$db_id=mysql_select_db("tass",$connect);  // DB 선택

if($db_id) {
    echo "데이터베이스 선택성공<br/>";
}else {
    echo "데이터베이스 선택실패<br/>";
}
mysql_query("set names euckr");

$fp = fopen("Effective_Java.txt", "r");	
while($buffer = fread($fp, 1024))
{
	$contents .= $buffer;
}
fclose($fp);
//..........................날짜1T시간2
//$pattern = "/\<abbr title=\"(.*)T(.*)Z\" class=\"value\"\>\<\/abbr\>[\t\n\r\f]*";
//$pattern .=".*[\t\n\r\f]*\<\/span\>[\t\n\r\f]*";
//$pattern .=".*location\"\>(.*)\<\/span\>	\<\/td\>[\t\n\r\f]+"; //경기장소3

$pattern  =" ([:alpha:].*) /";

eregi($pattern, $contents, $array);

for ( $i=1; $i < count($array); $i++ )
{
	echo $array[$i] . "<br>";
}


    echo " <br/><br/><br/>문제없어문제없어~<br/>";

?>